package oop.day09;

public class PointTest {
    public static void main(String[] args) {
        Point p1 = new Point(5, 6);
        System.out.println(p1.getX()+","+p1.getY());

        Point p2 = new Point();

        p2.setX(2);
        p2.setY(1);

        System.out.println(p2.getX()+","+p2.getY());

        Point p3 = new Point(9,12);
        System.out.println(p3);// 直接输出对象，调用自己重写的toString()方法


    }
}
